export default {
    oddAdd({state,commit},{name1,name2}){
        console.log(name1,name2);
       
        if(state.num  % 2 == 1){
           
            commit('add',{name1,name2});
        }

    },
    evenJian({state,commit},{count}){
        if(state.num % 2 == 0){
            commit('jian',{count})
        }
    }
}